package com.management.commons.exception.ExceptionCode;

public enum DefectRecordExceptionCode {
    CREATERECORD_ERROR(7001,"新增失败"),
    GETALLRECORDS_ERROR(7002,"查询失败"),
    DELETERECORD_ERROR(7003,"删除失败"),
    CHANGEASSIGNEE_ERROR(7004,"修改失败");

    private Integer code;
    private String message;
    DefectRecordExceptionCode(Integer code, String message){
        this.code=code;
        this.message=message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
